package com.pz.gulimall.common.constant;

public class ProductConstant {

    public enum AttrEnum {
        ATTR_TYPE_BASE(1, "base"), ATTR_TYPE_SALE(0,"sale");
        private int code;
        private String msg;

        AttrEnum(int code, String msg){
            this.code=code;
            this.msg=msg;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }
    }

    public enum SpuInfoPublishStatusEnum {
        CREATE(0, "新建"),UP(1,"上架"),DOWN(2, "下架");
        private int code;
        private String msg;

        SpuInfoPublishStatusEnum(int code, String msg){
            this.code=code;
            this.msg=msg;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }
    }


}
